#include "HelperCommand.h"
///-----------------------------------------------------------------------------
HelperCommand::HelperCommand(void)
{

}
///-----------------------------------------------------------------------------
HelperCommand::~HelperCommand(void)
{

}
///-----------------------------------------------------------------------------
void HelperCommand::SplitByChar(const std::string& sz, std::set<std::string>& output_set,const char ch)
{
	std::istringstream is(sz);
	std::string sztmp;
	while (getline(is, sztmp, ch))
	{  
		if (sztmp == "")  
		{   
			continue;  
		}  
		output_set.insert(sztmp); 
	}
}
///-----------------------------------------------------------------------------
bool HelperCommand::HasWildcards(const std::string& szFindName)
{
	if (szFindName.find("?") != std::string::npos || szFindName.find("*") != std::string::npos)
	{
		return true;
	}
	else
	{
		return false;
	}
}
///-----------------------------------------------------------------------------